/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.TicketDao;
import cc.altius.model.PaymentType;
import cc.altius.model.Ticket;
import cc.altius.model.TransTicket;
import cc.altius.service.TicketService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author mudassar
 */
@Service
public class TicketServiceImpl implements TicketService {

    @Autowired
    private TicketDao ticketDao;

    @Override
    public int addTicket(Ticket ticket, String followupDate, int hospitalId, int appSpecialistId) {
        return this.ticketDao.addTicket(ticket, followupDate, hospitalId, appSpecialistId);
    }

    @Override
    public List<Ticket> getOpenTicketList(int customerId) {
        return this.ticketDao.getOpenTicketList(customerId);
    }

    @Override
    public List<Ticket> getClosedTicketList(int customerId) {
        return this.ticketDao.getClosedTicketList(customerId);
    }

    @Override
    public Ticket getTicketByTicketId(int ticketId) {
        return this.ticketDao.getTicketByTicketId(ticketId);
    }

    @Override
    public void updateTicket(Ticket ticket,String followupDate,int hospitalId,int appSpecialistId) {
        this.ticketDao.updateTicket(ticket,followupDate,hospitalId,appSpecialistId);
    }

    @Override
    public List<TransTicket> getTicketTransDetails(int ticketId) {
        return this.ticketDao.getTicketTransDetails(ticketId);
    }

    @Override
    public List<Map<String, Object>> getFollowupListForTicket(int dispositionId,int userId,String startDate,String stopDate,int paymentTypeId) {
        return this.ticketDao.getFollowupListForTicket(dispositionId,userId ,startDate,stopDate,paymentTypeId);
    }

    @Override
    public List<PaymentType> getPaymentTypeList(){
        return this.ticketDao.getPaymentTypeList();
    }
}
